<?php


 function CurrentDateTime($fr = false)
 {
    if (!$fr)
        return date("Y-m-d H:i");
    else
        return date("d-m-Y H:i");
 }